package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.UserIpDto;
import com.zf.yichat.model.UserIp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserIpMapper extends FsMapper<UserIp> {
    Long countSameIp(@Param("ip") String ip);

    /**
     * 查询所有IP登录多个账号的数据
     */
    List<UserIpDto> queryAllIPLoginMultipleAccounts();

    /**
     * 查询用户注册时的IP信息
     * @param userId
     * @return
     */
    UserIpDto selectRegisterIpList(@Param("userId") Long userId);
}